<!-- top menu dove aggiungere funzionalità comuni a tutte le view -->
<div class="navbar navbar-inverse navbar-static-top">
	<div class="navbar-inner">
		<div class="container-fluid" >
			<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="brand" href="<?php echo $this->webroot;?>">WonderSchool</a>
			<div class="nav-collapse collapse">
				<ul class="nav">
	             <li class='<?php if ($this->name=='Home') echo "active"; ?>'>
						<?php echo $this->Acl->link(__("Home"), array('controller' => 'Home','action' => 'index'));  ?>
		          </li>
	             <li class='<?php if ($this->name=='Help') echo "active"; ?>'>
						<?php echo $this->Acl->link(__("Help"), "/Help");  ?>
		          </li>
				</ul>
				<div class="span7 pull-right" >
					<div class="navbar-content">
						<?php	if (!empty($utente)) {
						?>
						<ul class="nav pull-right">
							<li id="fat-menu" class="dropdown">
							<a id="drop3" class="dropdown-toggle" data-toggle="dropdown" role="button" href="#"> <i class="icon-user"></i>&nbsp;<?php echo $utente['Anagrafica']['cognome']." ".$utente['Anagrafica']['nome'] ?>
								<b class="caret"></b>
								</a>
								<ul class="dropdown-menu" aria-labelledby="drop3" role="menu"  style="padding: 0;">
									<li role="presentation">
										<a href='#' tabindex="-1" role="menuitem">Mio profilo</a>
									</li>
									<li role="presentation">
										<a href='<?php echo $this->webroot . "Users/password"?>' tabindex="-1" role="menuitem">Cambia password</a>
									</li>
									<li role="presentation">
										<a href='<?php echo $this->webroot . "Users/logout"?>' tabindex="-1" role="menuitem">Logout</a>
									</li>
								</ul>
							</li>
						</ul>
						<?php } else { ?>
						
						<?php } ?>
					</div>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
</div>


